<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:constants="http://www.tuanzi.com/constants/tags"
                template="/templates/template.xhtml">
    <ui:define name="title">广告位信息</ui:define>
    <ui:define name="content">

        <style>
            .ruleBtn {
                margin-right: 20px;
            }
        </style>

        <h:form id="spaceInfoForm" enctype="multipart/form-data">
            <div class="topbar clearfix"
                 style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);">
                <p:toolbar>
                    <f:facet name="right">
                        <p:commandButton value="编辑" icon="fa fa-edit"
                                         actionListener="#{loanProductSpaceInfoBean.changeStatusToEdit}"
                                         process="@this"
                                         update="@form" rendered="#{loanProductSpaceInfoBean.isView()}"/>
                        <p:commandButton value="保存" icon="fa fa-save"
                                         action="#{loanProductSpaceInfoBean.onSave()}"
                                         update="@form"
                                         rendered="#{loanProductSpaceInfoBean.isAdd() || loanProductSpaceInfoBean.isEdit()}"/>
                        <p:commandButton value="取消" icon="fa fa-reply"
                                         actionListener="#{loanProductSpaceInfoBean.changeStatusToView}"
                                         rendered="#{loanProductSpaceInfoBean.isEdit()}"
                                         process="@this"
                                         update="@form"/>
                        <p:button value="返回" icon="fa fa-reply-all" href="#{currentUserBean.back}"/>
                    </f:facet>
                </p:toolbar>
            </div>
            <p:tabView id="spaceTabView" style="background: #edf0f5; padding-top: 50px;">
                <p:tab title="基础信息">
                    <div class="ui-fluid">
                        <div class="ui-g">
                            <div class="ui-g-12">
                                <div class="card ui-g-12">
                                    <h3><b>基本信息</b></h3>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="spaceName" value="广告位名称"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputText id="spaceName" disabled="#{loanProductSpaceInfoBean.isView()}"
                                                     value="#{loanProductSpaceInfoBean.$.name}"/>
                                    </div>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="spaceId" value="广告位ID"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputText id="spaceId" disabled="#{loanProductSpaceInfoBean.isView()}"
                                                     value="#{loanProductSpaceInfoBean.$.spaceId}"/>
                                    </div>
                                    <div class="ui-g-12"></div>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="spaceType" value="广告位类型"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:selectOneMenu id="spaceType" disabled="#{loanProductSpaceInfoBean.isView()}"
                                                         value="#{loanProductSpaceInfoBean.$.type}">
                                            <p:ajax event="change"
                                                    listener="#{loanProductSpaceInfoBean.onChangeSpaceType}"
                                                    process="@this"
                                                    update="spaceDetails getProductRule productRuleDetails"/>
                                            <f:selectItem itemLabel="列表" itemValue="0"/>
                                            <f:selectItem itemLabel="推荐" itemValue="1"/>
                                            <f:selectItem itemLabel="专题" itemValue="2"/>
                                        </p:selectOneMenu>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="showCount" value="展示个数"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputText id="showCount" value="#{loanProductSpaceInfoBean.$.showCount}"
                                                     disabled="#{loanProductSpaceInfoBean.isView()}">
                                            <p:keyFilter regEx="/[\d]/"/>
                                        </p:inputText>
                                    </div>

                                    <div class="ui-g-12"></div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="openType" value="浏览器打开"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputSwitch id="openType"
                                                       value="#{loanProductSpaceInfoBean.$.canOpenBrowser}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭"/>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="redirectType" value="跳转H5"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputSwitch id="redirectType"
                                                       value="#{loanProductSpaceInfoBean.$.canRedirectH5}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭"/>
                                    </div>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="parentProd" value="所属大产品"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:selectOneMenu id="parentProd"
                                                         value="#{loanProductSpaceInfoBean.$.parentProd}" filter="true"
                                                         filterMatchMode="contains" disabled="#{loanProductSpaceInfoBean.isView()}">
                                            <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                          noSelectionOption="true"/>
                                            <f:selectItems value="#{loanProductSpaceInfoBean.dictionaries[DictionaryCode.LARGE_COMMON_PRODUCT]}"
                                                           var="dic"
                                                           itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                                        </p:selectOneMenu>
                                    </div>

                                    <div class="ui-g-12">
                                        <h3><b>规则配置</b></h3>
                                    </div>

                                    <div class="ui-g-12">
                                        <b><p:outputLabel value="过滤规则"/></b>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel style="color: #555;opacity: .6;" for="hitLibFilter"
                                                       value="撞库过滤"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputSwitch id="hitLibFilter"
                                                       value="#{loanProductSpaceInfoBean.productRule.filteringRule.hitLibFilter}"
                                                       disabled="true" onLabel="开启"
                                                       offLabel="关闭"/>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="applyConditionFilter" value="准入门槛过滤"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputSwitch id="applyConditionFilter"
                                                       value="#{loanProductSpaceInfoBean.productRule.filteringRule.applyConditionFilter}"
                                                       disabled="true" onLabel="开启"
                                                       offLabel="关闭"/>

                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="joinedFilter" value="参与过滤"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputSwitch id="joinedFilter"
                                                       value="#{loanProductSpaceInfoBean.productRule.filteringRule.joinedFilter}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭"/>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="clickUvLimitationFilter" value="控量过滤"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputSwitch id="clickUvLimitationFilter"
                                                       value="#{loanProductSpaceInfoBean.productRule.filteringRule.clickUvLimitationFilter}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭"/>
                                    </div>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="clickUvLimitationFilter" value="API进件过滤"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputSwitch id="apiFilter"
                                                       value="#{loanProductSpaceInfoBean.productRule.filteringRule.apiFilter}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭"/>
                                    </div>

                                    <div class="ui-g-12">
                                        <b><p:outputLabel for="getProductRule" value="取值规则"/></b>
                                    </div>
                                    <div class="ui-g-12">
                                        <h:panelGroup id="getProductRule" style="width: 100%">
                                            <p:selectOneButton id="autoOffline" value="#{loanProductSpaceInfoBean.productRule.valueRule.controlType}" disabled="#{loanProductSpaceInfoBean.isView()}">
                                                <p:ajax event="change" process="@this" update="productRuleDetails"/>
                                                <f:selectItem itemValue="0" itemLabel="全库"/>
                                                <f:selectItem itemValue="1" itemLabel="匹配件均价"/>
                                                <f:selectItem itemValue="2" itemLabel="创建时间"/>
                                                <f:selectItem itemValue="3" itemLabel="额度区间"/>
                                            </p:selectOneButton>
                                        </h:panelGroup>
                                    </div>

                                    <div class="ui-g-12">
                                        <h:panelGroup id="productRuleDetails" style="width: 100%">
                                            <div class="ui-g-2">
                                                <p:outputLabel
                                                        rendered="#{loanProductSpaceInfoBean.productRule.valueRule.controlType == 2}"
                                                        for="createDate" value="创建时间最新"/>
                                            </div>
                                            <div class="ui-g-4">
                                                <p:selectOneMenu id="createDate"
                                                                 rendered="#{loanProductSpaceInfoBean.productRule.valueRule.controlType == 2}"
                                                                 disabled="#{loanProductSpaceInfoBean.isView()}"
                                                                 value="#{loanProductSpaceInfoBean.productRule.valueRule.createTimeType}">
                                                    <f:selectItem itemLabel="7天" itemValue="0"/>
                                                    <f:selectItem itemLabel="15天" itemValue="1"/>
                                                    <f:selectItem itemLabel="1个月" itemValue="2"/>
                                                </p:selectOneMenu>
                                            </div>

                                            <div class="ui-g-2">
                                                <p:outputLabel
                                                        rendered="#{loanProductSpaceInfoBean.productRule.valueRule.controlType == 3}"
                                                        for="priceRange" value="额度区间"/>
                                            </div>
                                            <div class="ui-g-4">
                                                <p:selectOneMenu id="priceRange"
                                                                 rendered="#{loanProductSpaceInfoBean.productRule.valueRule.controlType == 3}"
                                                                 disabled="#{loanProductSpaceInfoBean.isView()}"
                                                                 value="#{loanProductSpaceInfoBean.productRule.valueRule.quotaIntervalType}">
                                                    <f:selectItem itemLabel="3000以下" itemValue="0"/>
                                                    <f:selectItem itemLabel="3000-5000" itemValue="1"/>
                                                    <f:selectItem itemLabel="5000-10000" itemValue="2"/>
                                                    <f:selectItem itemLabel="10000以上" itemValue="3"/>
                                                </p:selectOneMenu>
                                            </div>
                                        </h:panelGroup>
                                    </div>

                                    <div class="ui-g-12">
                                        <b><p:outputLabel value="替补规则"/></b>
                                    </div>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="showApi" value="展示API甲方"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:inputSwitch id="showApi"
                                                       value="#{loanProductSpaceInfoBean.productRule.substitutionRule.showApi}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭">
                                            <p:ajax event="change" update="apiStick"/>
                                        </p:inputSwitch>
                                    </div>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="noApiNoshow" value="只展示API甲方"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:inputSwitch id="noApiNoshow"
                                                       value="#{loanProductSpaceInfoBean.productRule.substitutionRule.noApiNoshow}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭">
                                            <p:ajax event="change" update="bench1 bench2"/>
                                        </p:inputSwitch>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="showValueAdd" value="展示增值服务类型甲方"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:inputSwitch id="showValueAdd"
                                                       value="#{loanProductSpaceInfoBean.productRule.substitutionRule.showValueAdd}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭">
                                        </p:inputSwitch>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="bench1" value="替补1机制"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:selectOneButton id="bench1" value="#{loanProductSpaceInfoBean.productRule.substitutionRule.substitutionOne}"  disabled="#{loanProductSpaceInfoBean.productRule.substitutionRule.noApiNoshow or loanProductSpaceInfoBean.isView()}">
                                            <f:selectItem itemValue="0" itemLabel="正常甲方不足N个展示替补1甲方"/>
                                            <f:selectItem itemValue="1" itemLabel="正常甲方全部参与完展示替补1甲方"/>
                                        </p:selectOneButton>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="bench2" value="替补2机制"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:selectOneButton id="bench2" value="#{loanProductSpaceInfoBean.productRule.substitutionRule.substitutionTwo}"  disabled="#{loanProductSpaceInfoBean.productRule.substitutionRule.noApiNoshow or loanProductSpaceInfoBean.isView()}">
                                            <f:selectItem itemValue="0" itemLabel="替补1甲方不足N个展示替补2甲方"/>
                                            <f:selectItem itemValue="1" itemLabel="替补1甲方全部参与完展示替补2甲方"/>
                                        </p:selectOneButton>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel for="bench3" value="替补3机制"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:selectOneButton id="bench3" value="#{loanProductSpaceInfoBean.productRule.substitutionRule.substitutionThree}"  disabled="#{loanProductSpaceInfoBean.productRule.substitutionRule.noApiNoshow or loanProductSpaceInfoBean.isView()}">
                                            <f:selectItem itemValue="0" itemLabel="替补2甲方不足N个展示替补3甲方"/>
                                            <f:selectItem itemValue="1" itemLabel="替补2甲方全部参与完展示替补3甲方"/>
                                        </p:selectOneButton>
                                    </div>

                                    <div class="ui-g-12">
                                        <b><p:outputLabel value="排序规则"/></b>
                                    </div>

                                    <div class="ui-g-12">
                                        <p:selectOneButton id="sortType"
                                                           value="#{loanProductSpaceInfoBean.productRule.sortRule.sortType}"
                                                           disabled="#{loanProductSpaceInfoBean.isView()}">
                                            <p:ajax event="change" process="@this" update="sortProductRule"/>
                                            <f:selectItem itemLabel="随机" itemValue="0"/>
                                            <f:selectItem itemLabel="UV价值高到低" itemValue="1"/>
                                            <f:selectItem itemLabel="权重比" itemValue="2"/>
                                        </p:selectOneButton>
                                    </div>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="apiStick"
                                                       value="API甲方置顶"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:inputSwitch id="apiStick"
                                                       value="#{loanProductSpaceInfoBean.productRule.sortRule.apiStick}"
                                                       onLabel="开启" offLabel="关闭"
                                                       disabled="#{!loanProductSpaceInfoBean.productRule.substitutionRule.showApi or loanProductSpaceInfoBean.isView()}"/>
                                    </div>
                                    <div class="ui-g-2">
                                        <p:outputLabel for="valueAddBottom"
                                                       value="增值服务甲方置底"/>
                                    </div>
                                    <div class="ui-g-10">
                                        <p:inputSwitch id="valueAddBottom"
                                                       value="#{loanProductSpaceInfoBean.productRule.sortRule.valueAddBottom}"
                                                       onLabel="开启" offLabel="关闭"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}"/>
                                    </div>
                                    <div class="ui-g-12">
                                        <h:panelGroup id="sortProductRule" style="width: 100%">
                                            <h:panelGroup
                                                    rendered="#{loanProductSpaceInfoBean.productRule.sortRule.sortType == 2}">
                                                <div class="ui-g-2">
                                                    <p:outputLabel for="uvValue" value="UV价值比例"/>
                                                </div>
                                                <div class="ui-g-4">
                                                    <p:inputNumber id="uvValue"
                                                                   value="#{loanProductSpaceInfoBean.productRule.sortRule.uvValueRatio}"
                                                                   symbol="%" symbolPosition="s"
                                                                   disabled="#{loanProductSpaceInfoBean.isView()}"/>
                                                </div>

                                                <div class="ui-g-2">
                                                    <p:outputLabel for="remainLimit" value="剩余控量比例"/>
                                                </div>
                                                <div class="ui-g-4">
                                                    <p:inputNumber id="remainLimit"
                                                                   value="#{loanProductSpaceInfoBean.productRule.sortRule.remainLimitRatio}"
                                                                   symbol="%" symbolPosition="s"
                                                                   disabled="#{loanProductSpaceInfoBean.isView()}"/>
                                                </div>

                                            </h:panelGroup>
                                        </h:panelGroup>
                                    </div>

                                    <div class="ui-g-12">
                                        <b><p:outputLabel value="下沉规则"/></b>
                                    </div>

                                    <div class="ui-g-2">
                                        <p:outputLabel style="color: #555;opacity: .6;" for="joinClickDown"
                                                       value="参与下沉"/>
                                    </div>
                                    <div class="ui-g-4">
                                        <p:inputSwitch id="joinClickDown"
                                                       value="#{loanProductSpaceInfoBean.productRule.sortRule.joinClickDown}"
                                                       disabled="#{loanProductSpaceInfoBean.isView()}" onLabel="开启"
                                                       offLabel="关闭"/>
                                    </div>

                                </div>
                            </div>

                            <h:panelGroup id="spaceDetails" class="ui-g-12">
                                <h:panelGroup rendered="#{loanProductSpaceInfoBean.$.type == 2}">
                                    <div class="ui-g-12">
                                        <div class="card ui-g-12">
                                            <h3>专题详情</h3>
                                            <div class="ui-g-2">
                                                <p:outputLabel for="topicType" value="专题类型"/>
                                            </div>
                                            <div class="ui-g-4">
                                                <p:selectOneMenu id="topicType"
                                                                 value="#{loanProductSpaceInfoBean.spaceDetails.type}"
                                                                 filter="true"
                                                                 filterMatchMode="contains"
                                                                 disabled="#{loanProductSpaceInfoBean.isView()}">
                                                    <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                                  noSelectionOption="true"/>
                                                    <!--<p:ajax event="change" update="annLabel"/>-->
                                                    <f:selectItems
                                                            value="#{loanProductSpaceInfoBean.dictionaries[DictionaryCode.TOPIC_TYPE]}"
                                                            var="dic"
                                                            itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                                                </p:selectOneMenu>
                                            </div>

                                            <div class="ui-g-12"/>

                                            <div class="ui-g-2">
                                                <p:outputLabel for="image" value="页面图"/>
                                            </div>
                                            <div class="ui-g-2">
                                                <p:graphicImage id="image"
                                                                url="#{loanProductSpaceInfoBean.spaceDetails.image}"
                                                                width="120"
                                                                hight="70"/>
                                            </div>
                                            <div class="ui-g-2">
                                                <p:fileUpload
                                                        fileUploadListener="#{loanProductSpaceInfoBean.onUploadImgUrl}"
                                                        mode="advanced"
                                                        fileLimit="1"
                                                        auto="true"
                                                        fileLimitMessage="只能上传一个文件"
                                                        label="上传" update="@form" process="@form"
                                                        disabled="#{loanProductSpaceInfoBean.isView()}"/>
                                            </div>
                                            <div class="ui-g-12"/>
                                            <div class="ui-g-2">
                                                <p:outputLabel for="thumbnail" value="推荐小图"/>
                                            </div>
                                            <div class="ui-g-2">
                                                <p:graphicImage id="thumbnail"
                                                                url="#{loanProductSpaceInfoBean.spaceDetails.thumbnail}"
                                                                width="120"
                                                                hight="70"/>
                                            </div>
                                            <div class="ui-g-2">
                                                <p:fileUpload
                                                        fileUploadListener="#{loanProductSpaceInfoBean.onUploadThumBnailImgUrl}"
                                                        mode="advanced"
                                                        fileLimit="1"
                                                        auto="true"
                                                        fileLimitMessage="只能上传一个文件"
                                                        label="上传" update="@form" process="@form"
                                                        disabled="#{loanProductSpaceInfoBean.isView()}"/>
                                            </div>

                                            <div class="ui-g-12"/>
                                            <div class="ui-g-2">
                                                <p:outputLabel for="backgroundColor" value="页面配色"/>
                                            </div>
                                            <div class="ui-g-10">
                                                <p:inputText id="backgroundColor"
                                                             value="#{loanProductSpaceInfoBean.spaceDetails.backgroundColor}"
                                                             disabled="#{loanProductSpaceInfoBean.isView()}"/>
                                            </div>
                                        </div>
                                    </div>
                                </h:panelGroup>
                            </h:panelGroup>
                        </div>
                    </div>
                </p:tab>
                <p:tab title="排序信息">
                    <div class="ui-fluid">
                        <div class="ui-g">
                            <div class="ui-g-12">
                                <div class="card ui-g-12">
                                    <h3>
                                        <b>排序产品信息</b>
                                        <p:commandButton value="新增"
                                                         actionListener="#{loanProductSpaceInfoBean.onAddSortProduct()}"
                                                         update="sortProductPanel"
                                                         style="float: right"
                                                         disabled="#{loanProductSpaceInfoBean.isView()}"/>
                                    </h3>
                                    <h:panelGroup id="sortProductPanel">
                                        <div class="ui-g-12">
                                            <p:dataTable id="recordDataTable"
                                                         style="width: 100%;text-align:center"
                                                         var="record" rowIndexVar="rowIndex"
                                                         value="#{loanProductSpaceInfoBean.sortProducts}"
                                                         emptyMessage="#{constants:get('EMPTY_MESSAGE')}"
                                                         resizableColumns="true"
                                                         draggableRows="#{loanProductSpaceInfoBean.isView()}">
                                                <p:column headerText="操作">
                                                    <p:commandButton icon="fa fa-remove"
                                                                     disabled="#{loanProductSpaceInfoBean.isView()}"
                                                                     actionListener="#{loanProductSpaceInfoBean.onDeleteSortProduct(rowIndex)}"
                                                                     process="@this" update="recordDataTable">
                                                        <p:confirm header="提示信息" message="是否确定删除?"
                                                                   icon="ui-icon-alert"/>
                                                    </p:commandButton>
                                                </p:column>
                                                <p:column headerText="活动" style="text-align:center;">
                                                    <p:selectOneMenu disabled="#{loanProductSpaceInfoBean.isView()}"
                                                                     filter="true" filterMatchMode="contains"
                                                                     value="#{record.productId}" style="width:100%">
                                                        <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                                      noSelectionOption="true"/>
                                                        <f:selectItems value="#{loanProductSpaceInfoBean.productInfos}"
                                                                       var="product"
                                                                       itemLabel="#{product.name}(#{product.id})"
                                                                       itemValue="#{product.id}"/>
                                                    </p:selectOneMenu>
                                                </p:column>
                                                <p:column headerText="位置" style="text-align:center;">
                                                    <p:inputText disabled="#{loanProductSpaceInfoBean.isView()}"
                                                                 value="#{record.position}" maxlength="3"/>
                                                </p:column>
                                            </p:dataTable>
                                        </div>
                                    </h:panelGroup>
                                </div>
                            </div>
                        </div>
                    </div>
                </p:tab>
            </p:tabView>
        </h:form>
    </ui:define>
</ui:composition>